import numpy

import numpy as np
arr1 = np.arange(36) ** 2
arr1 = arr1.reshape(6, 6)

for i in range(arr1.shape[0]):
    print(f'第{i}行的和{np.sum(arr1[i, :])}、平均值{np.mean(arr1[i, :])}、最大值{np.max(arr1[i, :])}、最小值{np.min(arr1[i, :])}')
print('')
for i in range(arr1.shape[1]):
    print(f'第{i}列的和{np.sum(arr1[i, :])}、平均值{np.mean(arr1[i, :])}、最大值{np.max(arr1[i, :])}、最小值{np.min(arr1[i, :])}')

print(arr1[:, 0:2])
print(arr1[:, 2:3])
print(arr1[:, 3:6])
